; Code used in the ISR to toggle RC2. It was placed immediately after the "isr_pwm5_start" label.
; Will need the flag "flags,isr_toggle_f" in the Equates file un-commented.


isr_pwm5_start
    movlb   bank_0						; ( Bank 0.)
	btfsc	flags,isr_toggle_f	; DEBUG. Toggling RC2.
	bra		isr_pwm5_1
	bsf		flags,isr_toggle_f
	movlb	bank_2
	bsf		LATC,RC2			; DEBUG. Set RC2 o/p HIGH.
	bra		isr_pwm5_2
isr_pwm5_1
	bcf		flags,isr_toggle_f
	movlb	bank_2
	bcf		LATC,RC2					; DEBUG.; Set RC2 o/p LOW.
isr_pwm5_2
